@extends('app')

@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="#">信息列表</a></li>
</ul>

<div class="panel panel-default mt20">
    <div class="table-responsive panel-body">
        <table class="table table-hover">
          <thead>
            <tr>
              <th>编号</th>
              <th>企业名称</th>
              <th>企业签名</th>
              <th>企业邮箱</th>
              <th>企业规模</th>
              <th>认证类型</th>
              <th>加入时间</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          @foreach($company as $res)
            <tr id="news_{{ $res->id }}">
              <td>{{ $res->id }}</td>
              <td><a href="{{ url('/admin/enterprise/companys/'.$res->id) }}">{{ $res->name }} </a></td>
              <td>{{ $res->signature }}</td>
              <td>{{ $res->email }}</td>
              <td>{{ $res->scales->name?:'' }}</td>
              <td>@if($res->auth_id > 0)<img src="{{ url($res->authes->icon) }}" width="80" height="60" />@else 无 @endif</td>
              <td>{{ $res->created_at}}</td>
              <td>
                <a href="{{ url('/admin/enterprise/companys/'.$res->id) }}"><i class="glyphicon glyphicon-edit"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
              </td>
            </tr>
          @endforeach
          </tbody>
        </table>
    </div>
</div>
<div>{!! $company->render() !!} </div>
@endsection
